/**
 * 协议
 * @return {[type]} [description]
 */
var url1=window.sessionStorage.getItem('url1');
var name=window.sessionStorage.getItem('username');
var protocol_name=window.sessionStorage.getItem('protocolName');
$.ajax({
    url:url1+'listModels',
    type:'POST',
    //data:,
    dataType:'json',
    success:function (datas) {
        var holder=$('#holder_of_items');
        holder.html('');
		var per=datas.data;
		for(var i=0;i<per.length;i++){
			var one_item=$('<div></div>');
			one_item.addClass('one_item');
			var fieldName=$('<div></div>');
			fieldName.addClass('items');
			fieldName.attr('id','field_name');
			fieldName.html(per[i].fieldName);
			one_item.append(fieldName);
			var fieldLength=$('<div></div>');
			fieldLength.addClass('items');
			fieldLength.attr('id','field_length');
			fieldLength.html(per[i].fieldLength);
			one_item.append(fieldLength);
			var fieldType=$('<div></div>');
			fieldType.addClass('items');
			fieldType.attr('id','field_type');
			fieldType.html(per[i].fieldType);
			one_item.append(fieldType);
			var fieldMeaning=$('<div></div>');
			fieldMeaning.addClass('items');
			fieldMeaning.attr('id','field_meaning');
			fieldMeaning.html(per[i].fieldMeaning);
			one_item.append(fieldMeaning);
			var fieldStart=$('<div></div>');
			fieldStart.addClass('items');
			fieldStart.attr('id','field_start');
			fieldStart.html(per[i].fieldStart);
			one_item.append(fieldStart);
			var fieldEnd=$('<div></div>');
			fieldEnd.addClass('items');
			fieldEnd.attr('id','field_end');
			fieldEnd.html(per[i].fieldEnd);
			one_item.append(fieldEnd);
			holder.append(one_item);

		}
    }
});

